const Redis = require('ioredis');
const redis = {
  port: 6379,
  host: '127.0.0.1',
  prefix: 'register:', //存储前缀
  ttl: 60*3,
  family: 4,
  db: 0
}

const newRedis = new Redis(redis);
module.exports = newRedis